﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FortuneHeavenBAL;
using FortuneHeavenCommon.DataMap;
using FortuneHeaven.Admin.Common;

namespace FortuneHeaven.Admin.Pages.Statistic
{
    public partial class TotalStatistic : FortuneHeaven.Admin.Common.PageBase
    {
        public override string PageID
        {
            get { return "F61"; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GameStatisticBO bo = new GameStatisticBO();
                GameUserDBStatistic user = bo.GetUserStatistic();
                GameTreasureStatistic treasue = bo.GetTreasureStatistic();
                this.ltRegisterMember.InnerText = user.Member.ToString();
                this.ltRegisterUser.InnerText = user.UserCount.ToString();
                this.ltRegisterUserCureent.InnerText = user.UserCurrrent.ToString();
                this.ltCard.InnerText = user.Card.ToString();
                this.ltCardCurrent.InnerText = user.CardCurrent.ToString();
                this.ltNetPay.InnerText = user.Netpay.ToString();
                this.ltNetPayCurrent.InnerText = user.NetpayCurrent.ToString();

                this.ltRobot.InnerText = treasue.Robot.ToString();
                this.ltRobotScore.InnerText = treasue.RobotScore.ToString();
                this.ltRobotRevenue.InnerText = treasue.RobotRevenue.ToString();
                this.ltUserBank.InnerText = treasue.InsureScore.ToString();
                this.ltUserRevenue.InnerText = treasue.Revenue.ToString();
                this.ltUserScore.InnerText = treasue.Score.ToString();

                this.ltRealRobot.InnerText = treasue.RealRobot.ToString();
                this.ltRealRobotScore.InnerText = treasue.RealRobotScore.ToString();
                this.ltRealRobotRevenue.InnerText = treasue.RealRobotRevenue.ToString();

            }
        }
    }
}